﻿#!/bin/bash

RELEASE_VERSION=`jq '.version' ./package.json  | sed 's/\"//g'`

docker rm -f ic_web
docker rmi development.docker.19ego.cn:5000/intelligentcall/ic_web:$RELEASE_VERSION
docker run -d --name ic_web \
           --restart=always \
           --ulimit nofile=5000:5000 \
           -m 500M \
           -e BACK_END_SERVICES="https://centos85.jt" \
           -e BACK_END_SERVICES_WEB_SOCKET="wss://centos85.jt:443" \
           -e BACK_END_SERVICES_WEB_DEBUG="1" \
           -e BACK_END_SERVICES_WEB_LOGIN_STYLE="sms" \
           -p 8081:80 \
           -v /logs/intelligentcall/ic_web:/log \
           development.docker.19ego.cn:5000/intelligentcall/ic_web:$RELEASE_VERSION
           